package com.ilvyou.data.lcs;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/2/13.
 */
public class SetupIntervalEntityPK implements Serializable {
    private Integer ruleid;
    private Integer id;

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SetupIntervalEntityPK that = (SetupIntervalEntityPK) o;

        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = ruleid != null ? ruleid.hashCode() : 0;
        result = 31 * result + (id != null ? id.hashCode() : 0);
        return result;
    }
}
